

package cn.shengchao.examstar.distribute.infrastrure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName(value = "distribute_order_task_sale")
public class DistributeOrderTaskSale {
    /**
     * 自增编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分账任务id
     */
    @TableField(value = "distribute_task_id")
    private Long distributeTaskId;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 销售来源用户
     */
    @TableField(value = "sale_user_id")
    private Long saleUserId;

    /**
     * 销售角色编码
     */
    @TableField(value = "distribute_role_code")
    private String distributeRoleCode;
    /**
     * 内容分销收益用户
     */
    @TableField(value = "distribute_user_id")
    private Long distributeUserId;

    /**
     * 分销比例
     */
    @TableField(value = "distribute_percent")
    private BigDecimal distributePercent;
    /**
     * 减扣标记
     */
    @TableField(value = "deduct_flag")
    private String deductFlag;
    /**
     * 分销金额
     */
    @TableField(value = "distribute_amount")
    private BigDecimal distributeAmount;

    /**
     * 订单来源用户
     */
    @TableField(value = "source_user_id")
    private Long sourceUserId;

    /**
     * 分销时间
     */
    @TableField(value = "distribute_time")
    private Date distributeTime;

    @TableField(value = "create_user")
    private Long createUser;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_user")
    private Long updateUser;

    @TableField(value = "update_time")
    private Date updateTime;
}